package com.qf.user.controler;

import com.qf.user.vo.ResultVo;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
@CrossOrigin
public class UserControler {
    @PostMapping ("/login1")
    public ResultVo login1(String username, String password){
        System.out.println(username);
        System.out.println(password);
        //1.请求逻辑

        //2.返回json
        return new ResultVo(1,"ok","sssss");
    }
}
